<script>
    // 类型转换
    var a = 2;
    var b = 3;

    if (a+b) {
        console.log('a+b的值大于0');
    } else {
        console.log('a+b的值小于或等于0');
    }


</script>